package rhc.discribute.access.signal;

import rhc.discribute.BaseComponent;
import rhc.discribute.node.host.Host;
import rhc.discribute.node.sendMessage.SendMessageCallback;

public class SendMsgCallback extends BaseComponent implements SendMessageCallback{

	@Override
	public void send(Host host, Host toHost, String message) {
		logger.info(host+" 发送到 "+toHost+" 的消息 "+message+" 已经发送");
	}

	@Override
	public void receiveSuccess(Host host, Host toHost, String message) {
		logger.info(host+" 发送到 "+toHost+" 的消息 "+message+" 发送成功");
	}

	@Override
	public void receiveFail(Host host, Host toHost, String message) {
		logger.info(host+" 发送到 "+toHost+" 的消息 "+message+" 发送失败");
	}

}
